package com.zmn.oms.dubbo.interfaces.zmn.normal.order;

import com.zmn.common.dto2.ResponseDTO;
import com.zmn.oms.dubbo.dto.zmn.order.OrderWorkDetailSpoolDRO;
import com.zmn.oms.dubbo.dto.zmn.order.OrderWorkSpoolDRO;

import javax.validation.constraints.NotNull;
import java.util.List;
import java.util.Set;

/**
 * 类描述： 订单生命周期 节点
 *
 * @author yule
 * @date 2020/8/20 23:40
 */
public interface ZsNormalOrderNodeSpoolRemoteService {

    /**
     * 获取工单节点时间轴详情
     *
     * @param workId
     * @param orderId
     * @return
     */
    ResponseDTO<List<OrderWorkDetailSpoolDRO>> listOrderNodeSpoolById(@NotNull Long workId, @NotNull Long orderId);


    /**
     * 根据多个用户Id获取多个订单最新节点信息
     *
     * @param userIds
     */
    ResponseDTO<List<OrderWorkSpoolDRO>> listFirstOrderNodeSpoolByUserIds(@NotNull(message = "用户id集合不能为空") Set<Long> userIds, @NotNull(message = "平台plat不能为空") Integer plat);

}